import { postSelectCinemaAPI,postAddDiscuss,postdeleteDiscuss} from "../../api/userinfo"


const cinema={
    state:{
        cinemaInfo:{

        }

    },
    mutations:{ 
        SEA_SELECTMOVIE(state:any,value:any){
            state.cinemaInfo=value
        }

    }
    ,
    actions:{
        SEA_SELECTMOVIE(content:any){
            return new Promise(async (resolve, reject)=>{
                await postSelectCinemaAPI().then((res) => {
                    content.commit("SEA_SELECTMOVIE",res.data)
                    resolve(res.data)
                  });
            })
        }
    }
}
export default cinema;